package com.xyz.study.netty.guide.aio;

/**
 * AioTimeServer
 *
 * @author xyz
 * @version 1.0.0
 * @since 2021/7/1
 */
public class AioTimeServer {
    public static void main(String[] args) {
        int port = 8080;
        if (null != args && args.length > 0){
            try{
                port = Integer.parseInt(args[0]);
            } catch (NumberFormatException e){
                System.out.println("The time server use default port 8080.");
            }
        }
        new Thread(new AsyncTimeServerHandler(port)).start();
    }
}
